#ifndef _video_render_h_
#define _video_render_h_

#include <string>

class VideoRender {
public:
    VideoRender(int32_t width, int32_t height, std::string pixFormat, std::string id = std::string());
    int32_t Init();
    int32_t Render(uint8_t *yData, uint8_t *uData, uint8_t *vData, int32_t width, int32_t height);
    int32_t Width() const;
    int32_t Height() const;
    std::string PixFormat() const;
    uint8_t *FrameBuffer();
private:
    int32_t width_ {0};
    int32_t height_ {0};
    std::string pixFormat_ {0};
    std::string id_;
    std::unique_ptr<uint8_t []> frameBuffer_ {nullptr};
};

#endif